<?php
require_once 'utils.php';
session_start();
if (isset($_SESSION['user'])) {
    $user = array(
        'name' => $_SESSION['user']['nombreUsuario']
    );    
} else {
    $user = null;
}
echo json_encode($user);

?>
